package org.twitter.connection;

import twitter4j.TwitterException;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class TwitterConnectorActivity extends TwitterActivity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button button =(Button) findViewById(R.id.submit);
		button.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				EditText editText = (EditText) findViewById(R.id.msg);
				try {
					twiitterConator.submit(editText.getText().toString());
				} catch (TwitterException e) {
					e.printStackTrace();
				}
			}
		});
	}
}
